package com.alisls.demo.springcloud.service.user.dao.menu;

import com.alisls.demo.springcloud.service.user.entity.resource.MenuDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 菜单DAO
 *
 * @author Ke Wang
 * @date 2020/11/5
 */
public interface MenuDAO extends JpaRepository<MenuDO, Long>, JpaSpecificationExecutor<MenuDO> {

    MenuDO findByCode(String menuCode);

    Integer deleteByCode(String menuCode);

}
